﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" lasteditedby="Geert" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
  <title translate="true">Services</title>
  <keywords>
    <keyword translate="true">MVVM</keyword>
    <keyword translate="true">Services</keyword>
  </keywords>
  <body>
    <header>
      <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Services</text></para>
    </header>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">Catel offers lots of out-of-the-box services and implementations. Services can be used to separate the logic of external functionality in a service. The advantages of this technique are:</text></para>
    <list id="40" type="ul" listtype="bullet" formatstring="·" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="Normal (list)" style="font-family:Symbol; font-size:10pt; color:#000000;">
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Separation of Concerns</text></li>
      <li styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Unit testing (mocking interfaces is easy)</text></li>
    </list>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">All services provided by Catel have both a unit test version and a real (or production version). For example, the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_MVVM_Services_IMessageService" styleclass="Normal" translate="true">IMessageService</link><text styleclass="Normal" translate="true"> has a test implementation that does not show a message box, but checks the result only.</text></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">For more information about unit testing, see </text><link displaytype="text" defaultstyle="true" type="topiclink" href="GS_UnitTesting" styleclass="Normal" translate="true">unit testing</link><text styleclass="Normal" translate="true">.</text></para>
  </body>
</topic>
